﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XmlStudio.Logger.Interfaces
{
    /// <summary>
    /// Specifies interface for LogFactory.
    /// </summary>
    public interface ILogFactory
    {
        /// <summary>
        /// Creates Log.
        /// </summary>
        /// <param name="path">Path to the log file.</param>
        /// <returns>Reference to the log writer.</returns>
        ILogWriter Create(string path);

        /// <summary>
        /// Gets or sets the current log writer.
        /// </summary>
        ILogWriter Current { get; set; }

        /// <summary>
        /// Disposes of the log writer.
        /// </summary>
        void DisposeOfLogWriter();
    }
}